from django.db import models
from django.utils.translation import ugettext as _

from django_common.models import ModelWithDate
from django.contrib.auth.models import User
from django_comments.models import ModelWithComments
from core.config import MODE_CHOICES, STATUS_CHOICES

class Request(ModelWithDate, ModelWithComments):
    name = models.CharField(_('name'), max_length = 75)
    description = models.TextField(_('description'), default = '')
    url = models.URLField(_('url'), blank = True)
    mode = models.CharField(_('mode'), max_length = 75, choices = MODE_CHOICES)
    status = models.CharField(_('status'), max_length = 75, choices = STATUS_CHOICES)
    user = models.ForeignKey(User)